﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Lecturers/Lecturers.Master" Inherits="System.Web.Mvc.ViewPage<Diploma.Models.CollaborationRoom>" %>
<%@ Import Namespace="ViewRes" %>
<asp:Content ID="ScriptsContent" ContentPlaceHolderID="ScriptsContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:SharedStrings.Add%></h2>

<%
    using (Html.BeginForm())
    {%>
    <%:Html.ValidationSummary(true, "Заполните необходимые поля", new {@class = "validationErrorBox"})%>         

        <div>
           <%:SharedStrings.Name%>
        </div>
        <div>
            <%:Html.TextAreaFor(model => model.BaseTheme, new {cols = "100",})%>
            <%:Html.ValidationMessageFor(mpdel => Model.BaseTheme, "*", new {@class = "validationErrorBox"})%>
        </div>
        
        <div>
             <%:SharedStrings.Description%>
        </div>
        <div>
            <%:Html.TextAreaFor(model => model.BaseDescription, new {cols = "100",})%>
            <%:Html.ValidationMessageFor(model => model.BaseDescription)%>
        </div>
        
        <div>

             <%:CollaborationRooms.Consultant%>
        </div>
        <div>
            <%:Html.DropDownList("ConsultantId", (IEnumerable<SelectListItem>) ViewData["Lecturers"], "-")%>
            <%:Html.ValidationMessageFor(model => model.ConsultantId)%>
        </div>
        
        <p>
            <input type="submit" value="<%:SharedStrings.Add%>" />
        </p>
    
<%
    }%>

</asp:Content>

